package com.asset.dispoal.business.bsCase.service.converter;

import com.asset.dispoal.business.bsCase.domain.db.entity.BsCase;
import com.asset.dispoal.business.bsCase.dto.BsCaseRequest;
import com.asset.dispoal.business.bsCase.dto.BsCaseResponse;
import org.mapstruct.Mapper;
import org.mapstruct.factory.Mappers;

import java.util.List;

/**
 * @author qr
 * @date 2022/4/12$
 */
@Mapper
public interface BsCaseConverter {

    BsCaseConverter INSTANCE = Mappers.getMapper(BsCaseConverter.class);

    BsCase reqToDo(BsCaseRequest request);

    List<BsCaseResponse> dosToRes(List<BsCase> bsCaseList);

    BsCaseResponse caseToRes(BsCase bsCase);

}
